package com.wgke.kmmapp.bean

import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.encodeToString
import kotlinx.serialization.json.Json

@Serializable
data class Version(
    @SerialName("clientType") val clientType: String?,
    @SerialName("minVersion") val minVersion: String?,
    @SerialName("maxVersion") val maxVersion: String?,
    @SerialName("currentVersion") val currentVersion: String?,
    @SerialName("publishDate") val publishDate: String?,
    @SerialName("downloadUrl") val downloadUrl: String?,
    @SerialName("versionDescription") val versionDescription: String?,
    @SerialName("updateDescription") val updateDescription: String?,
    @SerialName("apiUrl") val apiUrl: String?,
    @SerialName("state") val state: Int?,
    @SerialName("h5Url") val h5Url: String?,
){
    override fun toString(): String {
        return Json.encodeToString(this)
    }
}